<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>Hello</h1>

    ${message}<br/>

    [[${message}]]<br/>

    [(${message})]<br/>

    <div>[[${message}]]</div>

    <div th:text="${message}"></div>

    [[${emps}]]<br/>

    <table border="1" width="70%">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>工资</th>
        </tr>

        <tr th:each="emp,i:${emps}">
            <td>[[${i.count}]]</td>
            <td>[[${emp.name}]]</td>
            <td th:if="${emp.salary<10000}" style="color: red;">[[${emp.salary}]]</td>
            <td th:if="${emp.salary>=10000}" style="color: green;">[[${emp.salary}]]</td>
        </tr>
    </table><br/>

    [[${user}]]<br/>

    <div th:text="${#dates.format(user.registDate,'yyyy/MM/dd HH:mm:ss')}"></div><br/>


    <form action="#">
        <input type="hidden" name="id" th:value="${user.id}"/><br/>
        账号：<input type="text" name="username" th:value="${user.username}"/><br/>
        密码：<input type="password" name="password" th:value="${user.password}"/><br/>
        性别：<input type="radio" name="sex" value="1" th:checked="${'1' eq user.sex?'checked':'false'}"/>男
             <input type="radio" name="sex" value="0" th:checked="${'0' eq user.sex?'checked':'false'}"/>女<br/>
        学历：<select name="edu">
                <option>---请选择---</option>
                <option value="1" th:selected="${'1' eq user.edu?'selected':'false'}">高中</option>
                <option value="2" th:selected="${'2' eq user.edu?'selected':'false'}">专科</option>
                <option value="3" th:selected="${'3' eq user.edu?'selected':'false'}">本科</option>
             </select><br/>
        爱好：<input type="checkbox" name="hobbies" value="1" th:checked="${#arrays.contains(user.hobbies,'1')}"/>吃
             <input type="checkbox" name="hobbies" value="2" th:checked="${#arrays.contains(user.hobbies,'2')}"/>玩
             <input type="checkbox" name="hobbies" value="3" th:checked="${#arrays.contains(user.hobbies,'3')}"/>睡<br/>
        简介：<textarea rows="5" cols="20" name="description" th:text="${user.description}"></textarea>
    </form>


    <br/>

    <form action="#">
        <input type="hidden" name="id" th:field="${user.id}"/><br/>
        账号：<input type="text" name="username" th:field="${user.username}"/><br/>
        密码：<input type="password" name="password" th:field="${user.password}"/><br/>
        性别：<input type="radio" name="sex" value="1" th:field="${user.sex}"/>男
             <input type="radio" name="sex" value="0" th:field="${user.sex}"/>女<br/>
        学历：<select name="edu" th:field="${user.edu}">
                <option value="-1">---请选择---</option>
                <option value="1">高中</option>
                <option value="2">专科</option>
                <option value="3">本科</option>
             </select><br/>
        爱好：<input type="checkbox" name="hobbies" value="1" th:field="${user.hobbies}"/>吃
        <input type="checkbox" name="hobbies" value="2" th:field="${user.hobbies}"/>玩
        <input type="checkbox" name="hobbies" value="3" th:field="${user.hobbies}"/>睡<br/>
        简介：<textarea rows="5" cols="20" name="description" th:field="${user.description}"></textarea>
    </form>






























</body>
</html>